import request from "../utils/require";

// get
export function getUser(data: any){
    return request({
        url:'/user/list',
        method:'get',
        params: data
    })
}


// post
export function editUser(data: any){
    return request({
        url:'/user/edit',
        method:'post',
        data
    })
}

// put
export function gerUsers(data: any){
    return request({
        url:'/users',
        method:'put',
        data
    })
}


// delete
export function deleteUser(data: any){
    return request({
        url:`users/${data}`,
        method:'delete',
    })
}